package com.jsoft.service.impl;

import com.jsoft.dao.TicketDetailDao;
import com.jsoft.dao.impl.TicketDetailDaoImpl;
import com.jsoft.entity.TicketDetail;
import com.jsoft.service.TicketDetailService;
import org.junit.Test;

import java.util.List;


/**
 * @author:sha
 * @email:o68o4741@163.com
 * @date:2023/2/21
 */
public class TicketDetailServiceImpl implements TicketDetailService {
    private static TicketDetailDao ticketDetailDao = new TicketDetailDaoImpl();
    @Override
    public TicketDetail searchTicketDetail(Integer id) throws Exception {
        return ticketDetailDao.getTicketDetail(id);
    }

    @Override
    public List listByTransferId(Integer id) throws Exception {
        return ticketDetailDao.findByTransferId(id);
    }
}
